<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use EloquentFilter\Filterable;
use Illuminate\Database\Eloquent\SoftDeletes;
use App\Models\Traits\Admin\ActionButtonTrait;

class Orderdetails extends Model
{
    //
    use Filterable,SoftDeletes, ActionButtonTrait;
    protected $fillable = [

        'ordertotalid','machineid','goodsids','ordersnp','merchant_id','mainboradnos','userid','ordersn','openid','operation_id', 'amounts','goods_price','goods_total_amount'
    ];

    protected $append = ['actionButton'];

    protected $actions = ['refund'];

    protected $actionUri = 'orders';
}
